set(target_name "00_eventloop_test01")
set(BASE_SRC
  ../logging/Logging.cc
  ../logging/LogStream.cc
  ../thread/Thread.cc
  ../datetime/Timestamp.cc
)

add_executable(${target_name} test01.cpp EventLoop.cpp ${BASE_SRC})

# 开启编译器更多检测
if(COMPILEOPTIONS)
	include(ExtraWarnings)
	apply_extra_warnings_to_target(${target_name} )
endif()

target_include_directories(
    ${target_name} 
    PRIVATE
    ../
    .
)

target_link_libraries(
    ${target_name} 
    PRIVATE 
    pthread
)

set(target_name "00_eventloop_test02")

add_executable(${target_name} test02.cpp EventLoop.cpp ${BASE_SRC})

# 开启编译器更多检测
if(COMPILEOPTIONS)
	include(ExtraWarnings)
	apply_extra_warnings_to_target(${target_name} )
endif()

target_include_directories(
    ${target_name} 
    PRIVATE
    ../
    .
)

target_link_libraries(
    ${target_name} 
    PRIVATE 
    pthread
)

set(target_name "00_eventloop_test03")

add_executable(${target_name} test03.cpp EventLoop.cpp ${BASE_SRC})

# 开启编译器更多检测
if(COMPILEOPTIONS)
	include(ExtraWarnings)
	apply_extra_warnings_to_target(${target_name} )
endif()

target_include_directories(
    ${target_name} 
    PRIVATE
    ../
    .
)

target_link_libraries(
    ${target_name} 
    PRIVATE 
    pthread
)